<?php

namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;

class ReplyController extends Controller
{
    //
    public function index(Request $request)
    {
    	// dd($request);
    	$a = $request->only("content","pid","userid");
    	$a['time'] = time();
 
    	$data = DB::table("reply")->insertGetId($a);
    	echo '<script>alert("回复成功");</script>';
    	echo redirect("admin/comment");
        // return view('admin.comment.user')->with('status');
    	
    }


}
